package com.forever7776.life.core.service.impl.blog;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.forever7776.life.core.entity.blog.BlogExt;
import com.forever7776.life.core.mapper.blog.BlogExtMapper;
import com.forever7776.life.core.service.blog.IBlogExtService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 博客拓展表 服务实现类
 * </p>
 *
 * @author kz
 * @since 2018-02-11
 */
@Service
public class BlogExtServiceImpl extends ServiceImpl<BlogExtMapper, BlogExt> implements IBlogExtService {

    /**
     * 根据博客ID查询一条数据
     *
     * @param blogId
     * @return
     */
    @Override
    public BlogExt selectByBlogId(Integer blogId) {
        return selectOne(new EntityWrapper<BlogExt>().eq("blog_id", blogId));
    }
}
